* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: none;
    font-family: "Cairo", sans-serif;
    line-height: 1.4;
    
    
}

body {
    direction: rtl;
    background-image: url(../img/brand/m.jpg);
    height: 95vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: sticky;
    top: 0;
    overflow: scroll;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}
body::after {
    content: "";
    position: absolute;
    background: rgba(0, 0, 0, 0.352);
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    width: 90%;
    height: 100vh;
    margin: 0 auto;
    position: fixed;
    overflow: scroll;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    scrollbar-width: none;
}

nav {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    justify-content: space-between;
    padding: 5px 50px;
    border-radius: 0 0 18px 18px;
    align-items: center;
    height: 60px;
    width: 100%;
    /*padding: 30px;*/
    background-color: rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(10px);
    box-shadow: 2px 14px 13px -8px rgba(0, 0, 0, 0.53);
    -webkit-box-shadow: 2px 14px 13px -8px rgba(0, 0, 0, 0.53);
    -moz-box-shadow: 2px 14px 13px -8px rgba(0, 0, 0, 0.53);
}

nav .logo {
    width: 10%;
}

nav .logo img {
    width: 100%;
}

.btn,
.btn1 {
    background-color: green;
    padding: 15px;
    border-radius: 18px;
    color: white;
    border: none;
    transition: 0.5s;
    margin: 5px;
    font-weight: bolder;
}

.btn:hover {
    background-color: greenyellow;
    font-weight: bolder;
    color: black;
}

.btn a {
    text-decoration: none;
    list-style: none;
    color: white;
    font-weight: bolder;
}

aside {
    z-index: 20;
    position: sticky;
    top: 6.5%;
}

aside .navlinks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100vh;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.699),
        rgb(0, 0, 0)
    );
    max-width: 50%;
    padding: 20px 0 0;
}

.open {
    position: relative;
    right: -100%;
    opacity: 0;
    display: none;
    transition: 1s !important;
}

aside .navlinks a {
    list-style: none;
    text-decoration: none;
    font-size: 1.2em;
    color: white;
    padding: 15px;
    font-weight: bolder;
    border-bottom: 2px solid transparent;
}

#navA,
.d {
    z-index: 1;
    list-style: none;
    text-decoration: none;
    color: white;
    padding: 15px;
    font-weight: bolder;
    border-bottom: 2px solid transparent;
    position: relative;
    transition: 0.3s;
}

.d::before {
    content: "";
    position: absolute;
    background: greenyellow;
    height: 4px;
    width: 0%;
    bottom: 0;
    left: 0;
    transition: 0.3s;
}
.d:hover {
    background-color: rgba(255, 255, 255, 0.311);
}
.d:hover::before {
    width: 100%;
}

#navA::after {
    content: "";
    position: absolute;
    background: greenyellow;
    height: 4px;
    width: 0px;
    bottom: 0;
    left: 0;
    transition: 0.3s;
}
#navA:hover {
    background-color: rgba(255, 255, 255, 0.311);
}
#navA:hover::after {
    width: 100%;
}

.side {
    display: none;
}

.homburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 10px;
    cursor: pointer;
}
.homburger span {
    width: 20px;
    height: 3px;
    background-color: white;
}

.home {
    position: relative;
    top: -60px;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.home .right-side-home,
.home .left-side-home {
    width: 45%;
    height: 80%;
}
.home .right-side-home {
    flex-grow: 2;
    color: rgb(255, 255, 255);
    font-weight: bolder;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-size: 2em;
}

.animated-text {
    font-size: 1.2em;
    color: greenyellow;
    font-weight: bold;
    white-space: nowrap;
    width: 0;
    overflow: hidden;
    animation: typing 5s steps(20, end) infinite;
    margin: 10px 0;
}

.btn1 {
    animation: btnBlink 2s ease-in-out infinite;
}

@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes btnBlink {
    0% {
        background-color: rgba(172, 255, 47, 0.511);
    }

    50% {
        background-color: rgba(172, 255, 47, 0.158);
    }

    100% {
        background-color: rgba(172, 255, 47, 0.511);
    }
}

.home .left-side-home {
    border-left: 50px solid greenyellow;
    border-bottom: 50px solid greenyellow;
    border-top: 50px solid transparent;
    border-right: 50px solid transparent;
    background-image: url("../img/brand/m_home_pic.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(80%);
    transition: 0.8s;
}

.home .left-side-home:hover.left-side-home {
    transform: scale(1.01);
    filter: grayscale(0);
}

.about {
    width: 100%;
    height: fit-content;
    align-items: start;
}

.box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.box .cardes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    height: 60%;
}

.box .card {
    width: 300px;
    height: 50vh;
    margin: 20px 0;
    position: relative;
}

.sub_box {
    width: 90%;
    height: 40vh;
    margin: auto;
}

.sub_card {
    width: 95%;
    height: 90%;
    margin: auto;
}

.sub_card,
.card {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.401);
    color: white;
    border-radius: 18px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    border-bottom: transparent 20px solid;
    transition: 1s;
}

section .titel {
    font-size: 4em;
    margin: 60px auto 0;
    color: white;
    font-weight: bold;
    border-bottom: 3px solid white;
    width: fit-content;
}

.about p {
    font-size: 1.2em;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.248);
    height: 50%;
    width: 95%;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%);
    transition: 1s;
}

.card:hover.card p {
    top: 50%;
}

.sub_card:hover.sub_card p {
    top: 50%;
}
.sub_card:hover.sub_card {
    border-bottom: greenyellow 20px solid;
}

.card:hover.card {
    border-bottom: greenyellow 20px solid;
}

.news {
    margin-top: 60px;
    width: 100%;
    /* background-color: rgba(255, 255, 255, 0.248); */
    backdrop-filter: blur(10px);
    height: 100vh;
    align-items: start;
    position: relative;
}

.news_card {
    position: absolute;
    width: 90%;
    height: 70%;
    top: 50%;
    right: 50%;
    border: 7px solid greenyellow;
    transform: translate(50%, -50%);
    padding: 20px;
}

.reight i,
.left i {
    z-index: 100000;
    position: absolute;
    top: 50%;
    color: white;
    transform: translateY(-50%);
    font-size: 100px;
    cursor: pointer;
    transition: 1s;
}

.slider {
    position: relative;
    width: 100%;
    /* حجم ثابت للتجربة */
    height: 100%;
    overflow: hidden;
    margin: auto;
}

.slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slides-wrapper img {
    width: 100%;
    /* اجعلها نفس عرض السلايدر */
    height: 100%;
    flex-shrink: 0;
    background-size: cover;
}

.reight i:hover,
.left i:hover {
    color: rgba(255, 255, 255, 0.216);
}

.reight i {
    left: 15px;
}

footer {
    background: #a6ce39;
    /* اللون الأخضر المصفر */
    color: #fff;
    text-align: center;
    padding: 20px 10px;
}

footer .social-icons {
    margin: 5px 0;
}

footer .social-icons a {
    color: #fff;
    font-size: 20px;
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .social-icons a:hover {
    color: #333;
}
footer h3 {
    margin: 2px 0 1px;
}

footer .logo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

footer .logo img {
    width: 20%;
    height: 12%;
}

footer p {
    margin: 5px 0 0;
    font-size: 14px;
}

@media only screen and (max-width: 1024px) {
    body {
        height: 100vh;
    }

    nav {
        width: 100%;
        height: 10%;
        border: none;
        border-radius: 0;
    }

    nav .btn,
    nav .menu {
        display: none;
    }

    nav .logo {
        width: 30%;
        display: flex;
        align-self: center;
    }

    .container {
        width: 100vw;
    }

    .side {
        display: inline !important;
    }

    aside .navlinks {
        z-index: 20;
        min-width: 100%;
        position: absolute;
        text-align: center;
        font-size: 1.5em;
    }

    .home {
        width: 100vw;
    }

    .home .left-side-home {
        display: none;
    }

    .home .right-side-home {
        display: flex;
        width: 100%;
    }

    .animated-text {
        font-size: 1em;
    }

    .btn1 {
        margin-top: 30px;
    }

    .card {
        min-width: 60vw;
    }

    .sub_card {
        min-width: 100%;
        padding: 0;
    }

    .sub_box {
        min-width: 97%;
    }

    .news_card {
        width: 95%;
    }

    .news_card {
        padding: 0;
    }

    .reight i,
    .left i {
        font-size: 40px;
    }

    footer .logo img {
        width: 30%;
        height: 22%;
    }
    a.btn1{
        font-size: .7em;
    }
}

@media (min-width: 750px) and (max-width: 1500px) {

    .right-side-home h1{
        font-size: 1.2em;
    }

        .right-side-home p{
        font-size: .8em;
    }
    nav a , .btn{
        font-size: 1.2em;
    }


nav .logo  {
        width: 20%;
    }
}


/* @media (min-width: 1024px) and (max-width: 2000px) {


    .right-side-home h1, p{
        line-height: 2;
    }

.home .right-side-home, .home .left-side-home {
    width: 42%;
    height: 52%;
}
nav{
    height: 10%;
}
    .btn{
        font-size: 1.2em;
    }

    nav a{
                font-size: 1.4em;

    }
} */
